<?php

declare(strict_types=1);

namespace Modules\Basic\Models;

use Catch\Base\CatchModel as Model;

/**
 * @property $id
 * @property $url
 * @property $file_name
 * @property $file_ext
 * @property $file_type
 * @property $file_size
 * @property $file_path
 * @property $creator_id
 * @property $created_at
 * @property $updated_at
 * @property $deleted_at
 * @property $create_time
 * @property $update_time
*/
class UploadFile extends Model
{


    protected $table = 'admin_upload_file';

    protected $fillable = [ 'id', 'url', 'file_name', 'file_ext', 'file_type', 'file_size', 'file_path', 'creator_id', 'created_at', 'updated_at', 'deleted_at', 'create_time', 'update_time' ];

    /**
     * @var array
     */
    protected array $fields = ['id','url','file_name','file_ext','file_type','file_size','file_path','created_at','updated_at'];

    /**
     * @var array
     */
    protected array $form = ['url','file_name','file_ext','file_type','file_size','file_path'];

    /**
     * @var array
     */
    public array $searchable = [
        'url' => '=',

    ];


}
